package cn.itcast.service.mobileImpl;

import cn.itcast.dao.PayLogDao;
import cn.itcast.mobile.PayLogService;
import cn.itcast.pojo.PayLog;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Demo class
 *
 * @author gyc
 * @date 2021/10/20
 */
@Service
public class PayLogServiceImpl implements PayLogService {
    @Autowired
    private PayLogDao payLogDao;

    @Override
    public void save(PayLog payLog) {
        payLogDao.save(payLog);
    }

    @Override
    public PayLog findByTransactionId(String transactionId) {
        return payLogDao.findByTransactionId(transactionId);
    }

    @Override
    public void update(PayLog payLog) {
        payLogDao.update(payLog);
    }

    @Override
    public PayLog findByOrderId(String orderId) {
        return payLogDao.findByOrderId(orderId);
    }
}
